<?php



class IdolUserMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.IdolUserMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('idol_user');
		$tMap->setPhpName('IdolUser');

		$tMap->setUseIdGenerator(false);

		$tMap->addPrimaryKey('USER_ID', 'UserId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('USERNAME', 'Username', 'string', CreoleTypes::VARCHAR, true, 50);

		$tMap->addColumn('CREATED_DATETIME', 'CreatedDatetime', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('PHONE', 'Phone', 'string', CreoleTypes::VARCHAR, false, 20);

		$tMap->addColumn('INFO', 'Info', 'string', CreoleTypes::LONGVARCHAR, false, null);

	} 
} 